@extends('layouts.agent')
@section('content')
    <div id="ribbon"><ol class="breadcrumb"><li>内容区</li></ol></div>
    <div class="content_wrapper">
        <aside>
            <header><i class="fa fa-fw fa-file"></i>期间统计数据</header>
            <section>
                <div class="row">
                    <div class="col-sm-12">
                        <form action="" method="get">
                            <div class="btn-group">
                                <input id="start" name="start" value="{{$start}}" type="text" class="form-control date-picker" data-date-format="yyyy-mm-dd" autocomplete="off" placeholder="开始时间">
                            </div>
                            ~
                            <div class="btn-group">
                                <input id="end" name="end" value="{{$end}}" type="text" class="form-control date-picker" data-date-format="yyyy-mm-dd" autocomplete="off" placeholder="结束时间">
                            </div>
                            <div class="btn-group">
                                <button class="btn btn-default"><i class="fa fa-filter"></i>查询</button>
                            </div>
                        </form>
                        <div class="table-responsive" style="margin-top:10px;">
                            <table id="example" class="table table-striped table-bordered table-hover" cellspacing="0"
                                   width="100%">
                                <thead>
                                <tr>
                                    <th>支付订单数</th>
                                    <th>支付用户数</th>
                                    <th>成本</th>
                                    <th>销售额</th>
                                    <th>利润</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>{{$row['order_num']}}</td>
                                        <td>{{$row['user_num']}}</td>
                                        <td>{{$row['cost']}}</td>
                                        <td>{{$row['sale']}}</td>
                                        <td>{{$row['profit']}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </section>
        </aside>
    </div>
@endsection